package greetings

import "fmt"

type People3 interface {
	Speak3(string) string
}

//错误的写法
func (stu *Student) Speak3(think string) (msg string) {
	if think == "a" {
		msg = "this is a message a"
	} else {
		msg = "nothing a"
	}
	return msg
}

func InterfaceErrorDemo() {
	var peo People = Student{}
	think := "abc"
	fmt.Println(peo.Speak(think))
}
